<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加管理员信息</title>
<script language="javascript">
function check(form){
	if(form.name.value==""){
		alert("请输入管理员名称!");form.name.focus();
		return false;
	}
	if(form.pwd.value==""){
		alert("请输入管理员密码!");form.pwd.focus();
		return false;
	}
	if(form.repwd.value==""){
		alert("请确认管理员密码!");form.repwd.focus();
		return false;
	}		
	if(form.pwd.value!=form.repwd.value){
		alert("您两次输入的管理员密码不一致，请重新输入!");
		form.pwd.focus();
		return false;
	}
	return true;
}
</script>
</head>
<body>
<center>
<table width="292" height="175" border="0" 
	cellpadding="0" cellspacing="0" 
	background="${path }/image/subBG.jpg">
<tr>
    <td valign="top">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="12%" height="47">&nbsp;</td>
        <td width="85%" valign="bottom">
        <table width="86%" height="31" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td class="word_white">添加管理员</td>
        </tr>
        </table>
        </td>
        <td width="3%">&nbsp;</td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td>
        <table width="100%" height="116"  border="0" cellpadding="0" cellspacing="0">
        <tr>
           	<td height="116" align="center" valign="top">
			<form action="saveManager.do" method="post" onsubmit="return check(this) ">
			<table height="116"  border="0" cellpadding="0" cellspacing="0">
      		<tr height="28">
        		<td width="35%" align="right">名称：</td>
        		<td width="65%" align="left">
          		<input name="name" size="17"/>
          		</td>      
          	</tr>
      		<tr height="28">
        		<td align="right">密码：</td>
        		<td align="left"><input name="pwd" type="password" size="18"/></td>
      		</tr>
      		<tr height="28">
        		<td align="right">确认密码：</td>
        		<td align="left"><input name="repwd" type="password" size="18"/></td>
      		</tr>
      		<tr>
        		<td height="30" align="center">&nbsp;</td>
        		<td><input type="submit" value="保存"/>
					&nbsp;
					<input type="reset" value="取消"/>
				</td>
      		</tr>
    		</table>
			</form>
			</td>
        </tr>
        </table>
        </td>
        <td>&nbsp;</td>
    </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</center>
</body>
</html>